package jiheyufanxing;

class Box<T> {
 private T content;
 
 public void put(T content) {
     this.content = content;
 }
 
 public T get() {
     return content;
 }
}

public class genericexample {
 public static void main(String[] args) {

     Box<Integer> integerBox = new Box<>();
     integerBox.put(10);
     System.out.println("Integer box content: " + integerBox.get());

     Box<String> stringBox = new Box<>();
     stringBox.put("Hello, World!");
     System.out.println("String box content: " + stringBox.get());
 }
}